/**
 * Copyright (c) Software Institute of PKU
 * All rights reserved. 
 * This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 */
package edu.pku.sei.modeler.util;

import org.eclipse.swt.SWT;
import org.eclipse.swt.graphics.Font;
import org.eclipse.swt.widgets.Display;

/**
 * @author zl
 *
 */
public class ResourceFactory {
	private static Font FONT_ITALICS;
	private static Font FONT_HEAD;
	private static Font FONT_HEAD_ITALICS;
	
	static {
		FONT_ITALICS = new Font(Display.getDefault(), "Arial", 9, SWT.ITALIC);
		FONT_HEAD = new Font(Display.getDefault(), "Arial", 9, SWT.BOLD);
		FONT_HEAD_ITALICS = new Font(Display.getDefault(), "Arial", 9, SWT.BOLD|SWT.ITALIC);
	}
	
	public static Font getItalicsFont() {
		return FONT_ITALICS;
	}
	
	public static Font getHeadFont() {
		return FONT_HEAD;
	}
	
	public static Font getHeadItalicsFont() {
		return FONT_HEAD_ITALICS;
	}
}

